PasswordHasExpired Method

Syntax

Context.Security.PasswordHasExpired as L ()

Context.Security.PasswordHasExpired as L (UserName as C)

Arguments

UserNameCharacter

Optional. The user name to check for password expiration. If no user name is used then the password expiration check is done for the current user.

Returns

resultLogical

Returns .T. if the user's password has expired; otherwise .F.

Description

Gets whether or not the password of the specified user has expired.

Discussion

Context.Security.PasswordHasExpired() gets whether or not the password of the specified user has expired. The maximum lifetime of a password is defined in the security settings. Check Context.Security.CallResult.Success before using the return value.